.category-featured-image-section {
  --grid-gap: 2em;
  margin-bottom: var(--grid-gap);

  @media screen and (width <= 600px) {
    --grid-gap: 1em;
  }

  &__images {
    display: grid;
    grid-template-columns: repeat(auto-fit, calc(25% - var(--grid-gap)));
    gap: var(--grid-gap);

    @media screen and (width <= 600px) {
      grid-template-columns: repeat(
        auto-fit,
        minmax(calc(50% - var(--grid-gap)), 1fr)
      );
    }
  }

  h2 {
    margin-bottom: calc(var(--grid-gap) / 4);

    @media screen and (width <= 600px) {
      font-size: var(--font-up-1);
    }
  }

  h3 {
    min-width: 0;
    word-break: break-word;
    font-weight: normal;
    margin-top: auto;
    padding: calc(var(--grid-gap) / 4) calc(var(--grid-gap) / 2);

    @media screen and (width <= 600px) {
      font-size: var(--font-0);
    }
  }

  img {
    width: 100%;
    max-height: $max-image-height;
    object-fit: cover;
  }

  a {
    color: var(--primary);
    line-height: 1.2;
    box-shadow: var(--shadow-dropdown);
    transition: box-shadow 0.25s;
    display: flex;
    flex-direction: column;

    &:focus,
    &:hover {
      box-shadow: var(--shadow-card);
      text-decoration: underline;
    }
  }
}

body.hide-topic-list {
  .topic-list {
    display: none;
  }

  .footer-message {
    display: none;
  }
}
